package com.zhg.javakc.modules.masterialstype.service;

import com.zhg.javakc.base.service.BaseService;
import com.zhg.javakc.modules.masterialstype.dao.TypeDao;
import com.zhg.javakc.modules.masterialstype.entity.TypeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TypeService extends BaseService<TypeDao, TypeEntity> {
    @Autowired
    private TypeDao typeDao;

    public List<Map<String,Object>> queryAlltype(){
        List<Map<String,Object>> list =typeDao.queryAlltype();
        return  list;
    };

    public List<Map<String,Object>> queryById(String gamTypeId){
        return typeDao.queryById( gamTypeId);
    }

    public void deleteType(String gamTypeId){
         typeDao.deleteType(gamTypeId);
    }
}
